ATSUCountFontFeatureSelectors

Counts the number of feature selectors for a given feature type in a font.

OSStatus ATSUCountFontFeatureSelectors (
                     ATSUFontID iFont,
                     ATSUFontFeatureType iType,
                     ItemCount *oSelectorCount);
iFont
A value of type ATSUFontID. Pass the ID of the font whose feature selectors you want to count.

iType
A value of type ATSUFontFeatureType. Pass a valid feature type whose feature selectors you want to count.

oSelectorCount
A pointer to a count. On return, the number of feature selectors defined for the feature type in the font. You cannot pass NULL for this parameter.

function result
A result code. The result code kATSUInvalidFontErr indicates that the ID does not correspond to any installed font. For a list of other ATSUI-specific result codes, see Result Codes.
DISCUSSION
The ATSUCountFontFeatureSelectors function counts the number of feature selectors that are defined for a given feature type. You can use this count to determine how much memory to allocate for the oSelectors array in the function ATSUGetFontFeatureSelectors.

VERSION NOTES
Available beginning with ATSUI 1.0.


© 2000 Apple Computer, Inc. – (Last Updated 25 Jan 00)